package com.zhao.concreteObserver;

import com.zhao.observer.Observer;

public class User implements Observer {

    private String name;

    public User(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "->" + message);
    }
}
